import React, { Component } from 'react';
import {  BrowserRouter as Router, Route  } from 'react-router-dom'
import App from './../views/index/App.js';
import About from './../views/about/About.js';
class RouteMap extends Component {  
    updateHandle() {  
        console.log('每次router变化之后都会触发')  
    }  
    render() {  
        return ( 
            <Router>
                <div>
                    <Route exact path="/" component={App}>
                    </Route>
                    <Route path="/About" component={About}>
                    </Route>
                </div>
            </Router> 
        )  
    }  
}  

   
export default RouteMap